<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="css/index.css" />
    <link rel="stylesheet" href="css/swiper-bundle.min.css" />
    <link
      rel="stylesheet"
      href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css"
    />
  </head>
  <body>
    <div class="top">
      <div class="lunbo">
        <div class="swiper-container">
          <div class="swiper-wrapper">
            <div class="swiper-slide">Slide 1</div>
            <div class="swiper-slide">Slide 2</div>
            <div class="swiper-slide">Slide 3</div>
          </div>
          <!-- 如果需要分页器 -->
          <div class="swiper-pagination"></div>

          <!-- 如果需要导航按钮 -->
          <div class="swiper-button-prev swiper-button-white"></div>
          <div class="swiper-button-next swiper-button-white"></div>

          <!-- 如果需要滚动条 -->
          <!-- <div class="swiper-scrollbar"></div> -->
        </div>
      </div>
      <main>公告</main>
      <section>法律知识</section>

      <article>案例</article>

      <aside>
        <div class="person">1</div>
        <div class="person">2</div>
        <div class="person">3</div>
        <div class="person">4</div>
        <div class="person">5</div>
        <div class="person">6</div>
        <div class="person">1</div>
        <div class="person">2</div>
        <div class="person">3</div>
        <div class="person">4</div>
        <div class="person">5</div>
        <div class="person">6</div>
        <div class="person">1</div>
        <div class="person">2</div>
        <div class="person">3</div>
        <div class="person">4</div>
        <div class="person">5</div>
        <div class="person">6</div>
      </aside>
    </div>
    <div class="footer">
      <ul id="app">
        <li :class="selectIndex==0?'active':''" @click="selectIndex=0">
          <i class="fa fa-home"></i>首页
        </li>
        <li :class="selectIndex==1?'active':''" @click="selectIndex=1">
          <i class="fa fa-grav"></i>明状
        </li>
        <li :class="selectIndex==2?'active':''" @click="selectIndex=2">
          <i class="fa fa-comment"></i>圈子
        </li>
        <li
          :class="selectIndex==3?'active':''"
          @click="selectIndex=3,location.href='login.html'"
        >
          <i class="fa fa-user"></i>我的
        </li>
      </ul>
    </div>
  </body>
  <script src="js/swiper-bundle.min.js"></script>
  <script src="libs/vue.js"></script>
  <script>
    ///轮播图
    var mySwiper = new Swiper(".swiper-container", {
      // direction: "vertical", // 垂直切换选项
      loop: true, // 循环模式选项
      autoplay: true, //自动播放

      // 如果需要分页器
      pagination: {
        el: ".swiper-pagination",
      },

      // 如果需要前进后退按钮
      navigation: {
        nextEl: ".swiper-button-next",
        prevEl: ".swiper-button-prev",
      },

      // 如果需要滚动条
      // scrollbar: {
      //   el: ".swiper-scrollbar",
      // },
    });

    /////尾部动态效果
    new Vue({
      el: "#app",
      data: {
        selectIndex: 0,
      },
      methods: {},
    });
  </script>
</html>
